package net.oschina.app.ui.activity.explore;

import net.oschina.app.R;
import net.oschina.app.base.BaseActivity;
import net.oschina.app.base.BasePagerAdapter;
import net.oschina.app.fragment.explore.MyEventFragment;
import net.oschina.app.fragment.explore.RecentlyEventFrament;
import net.oschina.app.util.ToolBarUtil;

/**
 * Created by 张运湘 on 2017/1/13.
 * 发现模块-活动activity
 */
public class EventActivity extends BaseActivity {


    @Override
    public int getLayoutRes() {
        return R.layout.activity_find_events;
    }

    @Override
    public void initView() {
        ToolBarUtil.setToolBar(this, "活动");
    }

    @Override
    public void initListener() {

    }

    @Override
    public void initData() {
        BasePagerAdapter adapter =new BasePagerAdapter(getSupportFragmentManager(),this);

        adapter.addTab(RecentlyEventFrament.class,"最近活动");
        adapter.addTab(MyEventFragment.class,"我的活动");

    }


}
